﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace HumanResourceSystem.Models
{
    public class EmployeeNew
    {
        [Key]
        public Int32 Id { get; set; }

        [DisplayName("员工号")]
        [Required(ErrorMessage = "请输入员工号")]
        public String IDCard { get; set; }

        [DisplayName("部门")]
        [Required(ErrorMessage = "请输入部门")]
        public String Department { get; set; }

        [DisplayName("年龄")]
        [Required(ErrorMessage = "请输入年龄")]
        public Int32 Age { get; set; }

        [DisplayName("姓名")]
        [Required(ErrorMessage = "请输入姓名")]
        public String Name { get; set; }

        [DisplayName("性别")]
        [Required(ErrorMessage = "请输入姓别")]
        public String Sex { get; set; }

        [DisplayName("联系电话")]
        [Required(ErrorMessage = "请输入联系电话")]
        public String Phone { get; set; }

        [DisplayName("家庭住址")]
        [Required(ErrorMessage = "请输入家庭住址")]
        public String Home { get; set; }

        [DisplayName("学历")]
        [Required(ErrorMessage = "请输入教育背景")]
        public String Edu { get; set; }

        [DisplayName("个人技能")]
        [Required(ErrorMessage = "请输入个人技能")]
        public String Tech { get; set; }

        [DisplayName("工作经验")]
        [Required(ErrorMessage = "请输入工作经验")]
        public String Work { get; set; }

        [DisplayName("入职日期")]
        [Required(ErrorMessage = "请输入入职日期")]
        public DateTime Date { get; set; }

        [DisplayName("图像文件")]
        public string Path { get; set; }
        
    }
}